package com.kingyun.gpsinspection.purificationservice.facade.service.iam.adm;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.AutoApply;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.CarTransferVo;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.EmployeeVo;

import java.util.List;

/**
 * Created by jiangjx on 2017/7/11.
 */
public interface CarTransferService {

    /**
     * 查询分页数据
     *
     * @param carTransferVo 查询条件
     */
    JSONObject queryListInfo(CarTransferVo carTransferVo) throws Exception;

    /**
     * 添加调度单信息
     *
     * @param carTransferVo 调派单信息
     * @param autoApplies   申请单列表
     * @param LoginUser     当前登陆人
     */
    void saveInfo(CarTransferVo carTransferVo, List<AutoApply> autoApplies, EmployeeVo LoginUser) throws Exception;

    /**
     * 加载待我审批的调派单
     *
     * @param carTransferVo 查询条件
     */
    JSONObject loadMyTodoListInfo(CarTransferVo carTransferVo) throws Exception;

    /**
     * 通过id查询调派单详细信息
     *
     * @param id 调派单主键id
     */
    CarTransferVo selectByPrimaryKey(String id) throws Exception;

    /**
     * 审批流程
     *
     * @param carTransferVo
     * @param loginUser
     * @param autoApplies
     */
    void dispose(CarTransferVo carTransferVo, List<AutoApply> autoApplies, EmployeeVo loginUser) throws Exception;
}
